<template>
	<view class="wha o_a" :style="'margin-top:' + globalData.safeAreaTop + 'px;height:' + (globalData.screenHeight - globalData.safeAreaTop) + 'px;'">
		<router-view></router-view>
	</view>
</template>
<script>
	export default{
		globalData: {
			screenHeight: 900,
			safeAreaTop: 0,
			screenWidth: 0,
		},
		onLaunch(){
			wx.getSystemInfo({ 		//设置屏幕高度
				success: res => {
					this.globalData.screenHeight = res.screenHeight;
					// this.globalData.safeAreaTop = res.safeArea.top;
					this.globalData.safeAreaTop = res.safeArea.top || 42;	// 42是为了适应安卓机给的，安卓有时候取不到高度值
					this.globalData.screenWidth = res.screenWidth;	
				}
			})
		},
		onLoad: function () {
			wx.hideTabBar();			// 隐藏tabBar
		},
		methods: {},
	}
</script>
<style>
	@import './static/css/common.css';
	body{
		font-family: 'Arial Negreta', 'Arial Normal', 'Arial';
		font-size: 24rpx;
		/* overflow: hidden; */
	}
	input{
		font-size: 30rpx;
	}
	input::placeholder {
		font-size: 30rpx;
	}
</style>